package com.zxr.demo.commom.bo;

import java.io.Serializable;
import java.time.LocalDateTime;


public class ChatMessage implements Serializable {
    private String id;                // 消息ID
    private String userId;            // 发送用户ID
    private String userName;          // 发送用户名
    private String content;           // 消息内容
    private LocalDateTime sendTime;   // 发送时间
    private String sessionId;         // 会话ID
    private int messageType;          // 消息类型：1-用户消息 2-AI回复

    public ChatMessage() {
    }

    public ChatMessage(String id, String userId, String userName, String content, LocalDateTime sendTime, String sessionId, int messageType) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.content = content;
        this.sendTime = sendTime;
        this.sessionId = sessionId;
        this.messageType = messageType;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getSendTime() {
        return sendTime;
    }

    public void setSendTime(LocalDateTime sendTime) {
        this.sendTime = sendTime;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }
}